package day04;

public class HomeWorkDemo {
    public static void main(String[] args) {
        int n = 0;
        for (int i = 1900; i < 2023; i++) {
            if ((i%4==0&&i%100!=0)||i%400==0){
                n++;
                if (n%10!=0){
                    System.out.print(i+"\t");
                }else {
                    System.out.print(i+"\t");
                    System.out.println("");
                }
            }


            
        }
    }
}
